public class Test {
    public static void main(String[] args) {
        int n = 5;
        for (int i = 0; i <n ; i++) {
            for (int j = 1; j <n-i ; j++) {
                System.out.print(" ");

            }
            for (int s = 0; s <i*2-1 ; s++) {
                System.out.print("*");

            }
            System.out.println();

            
        }
        

    }
}
